package com.adcc.loadsheet.monitor.util;

public class Constant {

    /**
     * 登录异常原因
     */
    public final static String ERROR_LOGIN_USERNAME = "用户名不存在";

    public final static String ERROR_LOGIN_PASSWORD = "密码错误";

    public final static String ERROR_SERVER = "服务器响应失败";

    public final static String ERROR_LOGOUT = "注销失败";

    public final static String ERROR_QUERY = "查询%s失败";

    public final static String ERROR_PARAMS = "输入数据有误";

    public final static String ERROR_RESTART = "重启失败";

    /**
     * 保存失败描述
     */
    public final static String SAVE_ERROR = "保存失败";

    public final static String SAVE_SUCCESS_ENGLISH = "%s operation record: save configuration successful.";

    public final static String SAVE_SUCCESS_SYSTEM = "%s operation record: save configuration successful,remarkInfo: %s.";

    public final static String SAVE_ERROR_ENGLISH = "%s operation record: save configuration failed, the reason is %s.";

    /**
     * 运维人员信息保存结果描述
     */
    public final static  String SAVE_REMARK_SUCCESS = "信息：信息保存成功。";

    public final static String  SAVE_REMARK_ERROR = "信息：保存配置失败，失败原因：%s。";
    /**
     * 重启失败描述
     */
    public final static String RESTART_ERROR = "操作：重启%s失败，失败原因：%s。";
    public final static String RESTART_ERROR_EN = "%s operation record: restart the %s service failed, the reason is %s.";
    public final static String RESTART_SUCCESS = "操作：重启%s服务成功。";
    public final static String RESTART_SUCCESS_EN = "%s operation record: restart the %s service successful.";
    /**
     * 重启失败原因
     */
    public final static String RESTART_URL_ISNULL = "服务重启URL未配置";
    public final static String RESTART_URL_ISNULL_EN = "the URL for service restart has not been configured.";
    public final static String RESTART_ERROR_ANALYSIS = "重启请求的响应解析失败";
    public final static String RESTART_ERROR_REQUEST = "重启请求发送失败";
    public final static String RESTART_ERROR_REQUEST_EN = "failed to send the restart request";
    public final static String RESTART_ERROR_ANALYSIS_EN = "failed to parse the response to the restart request";
    /**
     * 告警失败原因
     */
    public final static String CONFIRM_ERROR = "告警确认失败";
    /**
     * 操作日志标识
     */
    public final static String OPERATION_LOG = "operation";

    /**
     * 系统配置
     */
    public final static String CONFIG_BGS = "bgs";
    public final static String CONFIG_DATABASE = "database";
    public final static String CONFIG_MQ = "mq";
    public final static String CONFIG_APP_UPLOAD = "appUpload";
    public final static String CONFIG_AIR_INFO = "airInfo";
    public final static String CONFIG_MSG_UP_CENTER = "msgUpCenter";
    public final static String CONFIG_WEBSITE = "website";
    public final static String CONFIG_FORWARDER = "forwarder";
    public final static String IGNOREALARM = "ignoreAlarm";
    public final static String ROLEDISABLE = "roleDisable";

    /**
     * 数据库日志：模块状态
     */
    public final static String LOG_NORMAL = "%s IS NORMAL";
    public final static String LOG_WARNING = "%s IS WARNING -> %s";
    public final static String LOG_ABNORMAL = "%s IS ABNORMAL -> %s";

    /**
     * 数据库日志：节点状态
     */
    public final static String LOG_DOWN = "%s IS DOWN,";
    public final static String LOG_WARN = "%s IS WARN,";
}
